<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设置元素的右内边距</title>
</head>
<style>
    div{
        padding-right: 50px;
        background-color: lightblue;
    }

</style>
<div>这个 div 元素右内边距是 30px</div>


</html>